<template>
	<view class="content">
		<!-- flex弹性布局 -->
		<view class="view view1">view组件1</view>
		<view class="view view2" >view组件2</view>
		<view class="view view1">view组件1</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style>
	.content {
		display: flex; /* 弹性布局 */
		flex-direction: row;  /* 弹性布局方向 */
		align-items: center;  /* 垂直居中 */
		justify-content: center; /* 水平居中 */
	}

	.view{
		background-color: #4CD964;
		/* width: 100%; */
		display: block;
		height: 100rpx;
	}
	.view1{
		flex: 1;
		border: 1px solid #3F536E;
	},
	.view2{
		flex: 2;
		border: 1px solid red;
	}
</style>
